#from flask_wtf import FlaskForm
from wtforms import form
from wtforms import Form,StringField,PasswordField
from wtforms.validators import DataRequired,Length
from .BaseForms import baseForm


class admin_login(baseForm):
    admin_name = StringField('admin_name',
                             validators=[DataRequired(message='请输入管理员账号！'),
                             Length(3,50,message='管理员账号长度错误！')])
    admin_passwd = PasswordField('admin_passwd',
                                 validators=[DataRequired(message='请输入管理员密码！'),
                                             Length(4,20,message='管理员密码错误！')])